<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /* .every()  一假即假 */
        // let arr = [2, 3, 5, 7, 9];
        // console.log(arr.every(item => item < 5));

        /* .reduce() */
        // let result = arr.reduce((pre, current) => {
        //     console.log(pre, current);
        //     return pre += current
        // }, 0)
        // console.log(result);

    </script>
</body>

</html>